package com.qzxy.premiumhotelsystem.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName orders
 */
@TableName(value ="orders")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderUpdateDTO implements Serializable {


    @NotBlank(message = "orderId不能为空")
    private String orderId;

    @Schema(description = "房间号 此处接收房间号为了方便管理员操作，订单里改变的信息还是roomId")
    private String roomNumber;

    @Schema(description = "预订订单状态 (待支付、已完成、已支付、已取消、已入住、已续订)")
    private String status;

    @Schema(description = "入住时间 (yyyy-MM-dd HH:mm:ss格式)")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String checkInTime; // 入住时间

    private static final long serialVersionUID = 1L;
}